package com.liuyu.common.framework.message.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank; 

/**
 * 发送短信验证码命令
 *
 * @author: liuyu
 * @date: 2022/3/28 17:20
 * @version: 1
 */
@Data
public class MobileCaptchaCmd {
    @Schema(description = "应用代码", hidden = true)
    private String appId;
    @Schema(description = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String mobile;
    @Schema(description = "场景代码，需要提前添加")
    @NotBlank(message = "场景代码不能为空")
    private String scene;
    @Schema(description = "验证码")
    private String captcha;
    @Schema(description = "短信验证码的数量", hidden = true)
    private Integer count;
    @Schema(description = "验证码的发送时间间隔缓存Key", hidden = true)
    private String captchaIntervalKey;
    @Schema(description = "验证码的数量统计Key", hidden = true)
    private String captchaCountKey;
}
